package com.pubinfo.passbook.common.service.contract.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pubinfo.passbook.common.entity.TContractPaymentItems;
import com.pubinfo.passbook.common.model.dto.contract.FeeListParam;
import com.pubinfo.passbook.common.model.vo.contract.FeeCollectionListVo;
import com.pubinfo.passbook.common.service.contract.TContractPaymentItemsService;
import com.pubinfo.passbook.common.mapper.TContractPaymentItemsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author catho
* @description 针对表【t_contract_payment_items】的数据库操作Service实现
* @createDate 2021-12-07 09:02:30
*/
@Service
public class TContractPaymentItemsServiceImpl extends ServiceImpl<TContractPaymentItemsMapper, TContractPaymentItems>
implements TContractPaymentItemsService{

    @Resource
    private TContractPaymentItemsMapper tContractPaymentItemsMapper;

    @Override
    public IPage<FeeCollectionListVo> getFeeList(FeeListParam feeListParam) {
        IPage<FeeCollectionListVo> iPage = page(feeListParam.getPage());
        return tContractPaymentItemsMapper.getFeeList(iPage,feeListParam);
    }
}
